FROM eclipse-temurin:11-jre-alpine

RUN apk upgrade --no-cache && \
    apk add --no-cache libstdc++6 && \
    rm -rf /tmp/*

ADD jolokia-jvm-1.6.2-agent.jar /root/jolokia-jvm-agent.jar
ADD MyJarFile.jar /root/MyJarFile.jar
ADD run.sh /root/run.sh

EXPOSE 8080
WORKDIR /root

CMD ["/root/run.sh"]
